﻿<?xml version="1.0" encoding="utf-8" ?>
<View 
  xmlns="http://mobileui.codeplex.com/v1" 
  xmlns:Drawing="System.Drawing"
  DesiredSize="Unbound">

  <GradientRectangleElement DesiredSize="Unbound" StartColor="240,240,240" EndColor="0,80,200"/>

  <TextElement DesiredSize="Unbound" Foreground="200,200,200" Text="Demo" Angle="315" AutoSize="True" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  
  <DrawingPanel DesiredSize="Unbound" Background="{null}">
    <DrawingPanel.LayoutEngine>
      <StackLayout Margin="8,4" Padding="4"/>
    </DrawingPanel.LayoutEngine>

    <DrawingPanel.Behaviors>
      <ScrollBehavior DragAxis="Vertical"/>
    </DrawingPanel.Behaviors>
    
    <NavigationButtonBar Text="Animations" SecondaryText="Animate properties of graphic primitives" DesiredSize="UnboundAxis, 80" Background="{null}" Command="{Binding AnimationDemoCommand}"/>
    <!--<ButtonBar Text="Transitions" SecondaryText="Optimized bitmap animations" DesiredSize="UnboundAxis, 80" Background="{null}"/>-->
    <NavigationButtonBar Text="WinForms Interop" SecondaryText="Mixing MobileUI with WinForms using XAML" DesiredSize="UnboundAxis, 80" Background="{null}" Command="{Binding InteropDemoCommand}"/>
    <NavigationButtonBar Text="Primitives" SecondaryText="Polygon, Ellipse, Image, Text" DesiredSize="UnboundAxis, 80" Background="{null}" Command="{Binding PrimitivesDemoCommand}"/>
    <NavigationButtonBar Text="Behaviours" SecondaryText="Drag with slide" DesiredSize="UnboundAxis, 80" Background="{null}" Command="{Binding DragDemoCommand}"/>
    <NavigationButtonBar Text="Layout" SecondaryText="Stack, Wrap and Radial" DesiredSize="UnboundAxis, 80" Background="{null}" Command="{Binding LayoutDemoCommand}"/>

  </DrawingPanel>

</View>